import request from '@/utils/request'

//11111111
//获取可预约的教室信息的请求
export function getappointmentroom(date,fromtime,totime,pageNum,pageSize) {
  return request({
    url: '/teacher/getsitebytime',
    method: 'get',
    params: {
      date : date,
      fromtime : fromtime,
      totime : totime,
      pageNum,
      pageSize
    }
  })
}

//学生点击预约按钮的请求
export function appointmentroom(getroomid,date,fromtime,totime) {
  return request({
    url: '/teacher/yySiteByClassId',
    method: 'get',
    params: {
      //右边的要跟后端参数一样
      jsid : getroomid,
      yyrq : date,
      fromtime : fromtime,
      totime : totime
    }
  })
}

//2222222222
//查看预约请求 获得预约信息及预约人身份
export function seeappointmentmessage(pageNum,pageSize) {
  return request({
    url: '/teacher/ckyyqk',
    method: 'get',
    params:{
      pageNum,
      pageSize
  }
  })
}

//结束预约请求
export function overappointment(yyid) {
  return request({
    url: '/teacher/qxyy',
    method: 'get',
    params: {
      yyid : yyid
    }
  })
}

//333333333333333333
//获取学生所有信息请求
export function change(teacherName,teacherSex, teacherTel,teacherEMail) {
  return request({
    url: '/teacher/grxxxg',
    method: 'get',
    params: {
      teacherName : teacherName,
      teacherSex : teacherSex,
      teacherTel : teacherTel,
      teacherEmail : teacherEMail
    }
  })
}


